package com.task.view;

import java.util.ArrayList;

import com.task.db.pojo.User;

public class UserTab {
	private boolean tableRendered = false;
	private ArrayList<User> userTable = new ArrayList<User>();
	public UserTab() {
		tableRendered=true;
	}

	public boolean isTableRendered() {
		return tableRendered;
	}

	public void setTableRendered(boolean tableRendered) {
		this.tableRendered = tableRendered;
	}

	public ArrayList<User> getUserTable() {
		userTable.clear();
		
		
		
		userTable.add(new User("vasu", "vasu", "Admin"));
		userTable.add(new User("mithun", "mithun", "Standard"));
		
		return userTable;
	}

	public void setUserTable(ArrayList<User> userTable) {
		this.userTable = userTable;
	}
	
	public String editUser(){
		this.tableRendered=false;
		return "";
	}
	
	
}
